home *** CD-ROM | disk | FTP | other *** search
- property pMyListPosition, pMySprite, pSpinning, pMyTimeOut
- global cSlotOffset, gStartTime, gCounter, cBlurCastOffset, cBlurCastOffset2, gPicOffset, gSlotsList
-
- on birth me, listPosition
- set pMyListPosition to listPosition
- set pMySprite to pMyListPosition + cSlotOffset
- set pSpinning to 1
- set pMyTimeOut to getAt(gSlotsList, pMyListPosition) * 30
- return me
- end
-
- on slotChanger me
- checkTime()
- if pSpinning then
- if the castNum of sprite pMySprite = (cBlurCastOffset + 4) then
- set the castNum of sprite pMySprite to cBlurCastOffset + 1
- else
- set the castNum of sprite pMySprite to the castNum of sprite pMySprite + 1
- end if
- end if
- if gCounter = 4 then
- go("burning")
- end if
- updateStage()
- end
-
- on checkTime me
- if pSpinning then
- set timeCheck to the ticks - gStartTime
- if timeCheck > pMyTimeOut then
- puppetSound("whooshClunk")
- set the castNum of sprite pMySprite to pMyListPosition + gPicOffset
- set gCounter to gCounter + 1
- set pSpinning to 0
- end if
- end if
- end
-
- on reset me
- set pSpinning to 1
- set pMyTimeOut to getAt(gSlotsList, pMyListPosition) * 30
- end
-
- on playSlotGame me
- checkSlotTime()
- if pSpinning then
- if the castNum of sprite pMySprite = (cBlurCastOffset2 + 4) then
- set the castNum of sprite pMySprite to cBlurCastOffset2 + 1
- else
- set the castNum of sprite pMySprite to the castNum of sprite pMySprite + 1
- end if
- end if
- if gCounter = 4 then
- go("burning")
- end if
- updateStage()
- end
-
- on checkSlotTime me
- if pSpinning then
- set timeCheck to the ticks - gStartTime
- if timeCheck > pMyTimeOut then
- puppetSound("whooshClunk")
- set the castNum of sprite pMySprite to random(4) + gPicOffset
- set gCounter to gCounter + 1
- set pSpinning to 0
- end if
- end if
- end
-
- on resetForSlots me
- set pSpinning to 1
- set pMyTimeOut to pMyListPosition * 30
- end
-
- on thisIsYourSite me
- checkSiteTime()
- if pSpinning then
- if the castNum of sprite pMySprite = (cBlurCastOffset2 + 4) then
- set the castNum of sprite pMySprite to cBlurCastOffset2 + 1
- else
- set the castNum of sprite pMySprite to the castNum of sprite pMySprite + 1
- end if
- end if
- if gCounter = 4 then
- go("burning")
- end if
- updateStage()
- end
-
- on checkSiteTime me
- if pSpinning then
- set timeCheck to the ticks - gStartTime
- if timeCheck > pMyTimeOut then
- puppetSound("whooshClunk")
- set the castNum of sprite pMySprite to pMyListPosition + gPicOffset
- set gCounter to gCounter + 1
- set pSpinning to 0
- end if
- end if
- end
-